package org.vacoor.ticket.bean;

public class Passenger {
	//座位类型
	private SeatType seatType;
	//车票类型,学生票,成人票...
	private TicketType ticketType;
	//证件类型
	private CardType cardType;
	//证件号码
	private String cardNo;
	//乘客姓名
	private String name;
	//手机号码
	private String mobile;
	//是否保存联系人
	private boolean isSavePassenger;
	
	public Passenger(SeatType seatType, TicketType ticketType, CardType cardType, String cardNo, String name, String mobile) {
		this(seatType,ticketType,cardType,cardNo,name,mobile,true);
	}
	
	public Passenger(SeatType seatType, TicketType ticketType, CardType cardType, String cardNo, String name, String mobile, boolean isSavePassenger) {
		this.seatType = seatType;
		this.ticketType = ticketType;
		this.cardType = cardType;
		this.cardNo = cardNo;
		this.name = name;
		this.mobile = mobile;
		this.isSavePassenger = isSavePassenger;
	}

	public SeatType getSeatType() {
		return seatType;
	}

	public void setSeatType(SeatType seatType) {
		this.seatType = seatType;
	}

	public TicketType getTicketType() {
		return ticketType;
	}

	public void setTicketType(TicketType ticketType) {
		this.ticketType = ticketType;
	}

	public CardType getCardType() {
		return cardType;
	}

	public void setCardType(CardType cardType) {
		this.cardType = cardType;
	}

	public String getCardNo() {
		return cardNo;
	}

	public void setCardNo(String cardNo) {
		this.cardNo = cardNo;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public boolean isSavePassenger() {
		return isSavePassenger;
	}

	public void setSavePassenger(boolean isSavePassenger) {
		this.isSavePassenger = isSavePassenger;
	}

	@Override
	public String toString() {
		return "Passenger [seatType=" + seatType + ", ticketType=" + ticketType
				+ ", cardType=" + cardType + ", cardNo=" + cardNo + ", name="
				+ name + ", mobile=" + mobile + ", isSavePassenger="
				+ isSavePassenger + "]";
	}
}
